package interfaceexam;

public class Car {
    private Engine engine;
    private Window window;

    public void setWindow(Window window) {
        this.window = window;
    }

    private Engine old;


    public Car(){
    }



    private String name;

    public void setEngine(Engine engine) {
        this.engine = engine;
    }

    public void setOld(Engine old) {
        this.old = old;
    }


    public void window_test(){

        this.window.open_window();
        this.window.close_window();

    }



    public void open_car(){
        this.engine.load();
        this.engine.start();
        this.engine.up();

    }


    public void stop_car(){
        this.engine.stop();
    }




}
